streams/ptyopen.c